package Demo_01;

public class Demo_synchronized {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 0; i < 50000; i++) {
            Object locker = new Object();
            synchronized (locker) {
                synchronized (locker) {
                    count++;
                }
            }
        }
    }
}
